
#include "../common.h"

int main(int argc, char** argv)
{
	struct stat buf;

	printf("uid=[%d]\n", getuid());
	printf("euid=[%d]\n", geteuid());
	printf("guid=[%d]\n", getgid());
	printf("eguid=[%d]\n", getegid());
	
	if (-1 == stat(argv[1], &buf))
	{
		printf("stat failed \n");
		return -1;
	}


	printf("st.uid=[%d]\n", buf.st_uid);
	printf("st.gid=[%d]\n", buf.st_gid);

	return 0;
}
